package com.zt.teacher.service.impl;

import com.zt.common.pojo.SignInItem;
import com.zt.teacher.dao.SignInItemDao;
import com.zt.teacher.service.SignInItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-01-24
 */
@Service
@Transactional
public class SignInItemServiceImpl implements SignInItemService {

    @Autowired
    private SignInItemDao signInItemDao;

    @Override
    public void insert(SignInItem signInItem) {
        signInItemDao.insert(signInItem);
    }

    @Override
    public List<SignInItem> getBySignInId(int signInId) {
        return signInItemDao.getBySignInId(signInId);
    }

    @Override
    public SignInItem getBySignInIdAndStuId(int signInId, String studentId) {
        return signInItemDao.getBySignInIdAndStuId(signInId,studentId);
    }
}
